package hy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcCfg implements WebMvcConfigurer {
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showIndex").setViewName("index");
        registry.addViewController("/showOrder").setViewName("order");
        registry.addViewController("/showMenu_manage").setViewName("menu_manage");
        registry.addViewController("/showOrder_handler").setViewName("order_handler");
        registry.addViewController("/showUser_manage").setViewName("user_manage");
        registry.addViewController("/showUser_add").setViewName("user_add");
    }
}
